package com.asdf.tests;

/**
 * Simple airport representation 
 * @author ilia
 */
public class SimpleAirport {
	public String id;
	public String name;
	public String country;
	public String rate;
	public String licenseFile;

	public SimpleAirport(String id, String name, String country, String rate, String licenseFile)
	{
		this.id = id;
		this.name = name;
		this.country = country;
		this.rate = rate;
		this.licenseFile = licenseFile;
	}
	
	public String toXmlString() {
		return
		    "<airport id=\"" + id + "\">" + 
		        "<name>"	+ name +		"</name>" +
		        "<country>"	+ country +		"</country>" +
		        "<rate>"	+ rate +		"</rate>" +
		        "<license>"	+ licenseFile +	"</license>" +
	        "</airport>\n";
	}
}
